import * as Cesium from "cesium";
class alalystTool {
    constructor(viewer, options){
        this.elevationLine(viewer)
    }
    elevationLine(Viewer) {
        var contourColor = Cesium.Color.fromCssColorString('#ff0000'); // 等高线的颜色
        var contourSpacing = 100.0; // 等高线的等间距
        var contourWidth = 1.0; // 等高线的宽度
        var material = Cesium.Material.fromType('ElevationContour');
        var contourUniforms = material.uniforms;
        contourUniforms.width = contourWidth;
        contourUniforms.spacing = contourSpacing;
        contourUniforms.color = contourColor;
        Viewer.scene.globe.material = material;
    }
}

export default alalystTool
